package thinkingJava.chapter15;

class OrdinarySetter {
	void set(Base b) {
		System.out.println("OrdinarySetter.set(Base)");
	}
}
class DerivedSetter extends OrdinarySetter {
	void set(Derived d) {
		System.out.println("DerivedSetter.set(Derived)");
	}
}

public class OrdinaryArguments {
	public static void main(String[] args) {
		Base b = new Base();
		Derived d = new Derived();
		DerivedSetter ds = new DerivedSetter();
		ds.set(d);
		ds.set(b);
	}
}
